<?php
if( $GLOBALS['setting']['theme'] == '')
     $GLOBALS['setting']['theme'] = 'default';

$fichier_theme = array();

$fichier_theme['header'] = IMMOPHP_ROOT_PATH . 'themes/' . $GLOBALS['setting']['theme'] . '/header_nodisplay.tpl';
$fichier_theme['footer'] = IMMOPHP_ROOT_PATH . 'themes/' . $GLOBALS['setting']['theme'] . '/footer.tpl';


// CSS Core
$fichier_theme['css'] = '<link rel="stylesheet" href="'. $GLOBALS['setting']['url_site'] . 'themes/' . $GLOBALS['setting']['theme'] . '/design.css" type="text/css" media="screen" />';
$fichier_theme['css'] .= '<link rel="stylesheet" href="'. $GLOBALS['setting']['url_site'] . 'core/css/lightbox.css" type="text/css" media="screen" />';

// JS Core
$fichier_theme['js'] = '<script src="'.  $GLOBALS['setting']['url_site'] .'core/js/prototype.js" type="text/javascript"></script>';
$fichier_theme['js'] .= '<script src="'. $GLOBALS['setting']['url_site'] .'core/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>';

$GLOBALS['smarty']->assign('fichier_theme', $fichier_theme);
?>
